package com.gold.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gold.entity.Prepaid;
import com.gold.mapper.PrepaidMapper;
import com.gold.service.PrepaidService;

@Service
public class PrepaidServiceImpl implements PrepaidService{

	@Autowired
	private PrepaidMapper pm;
	
	public void insertPrepaid(Prepaid prepaid) {
		pm.insertPrepaid(prepaid);
	}

	public List<Prepaid> selectPrepaidByUserId(int userId) {
		return pm.selectPrepaidByUserId(userId);
	}

}
